package com.yangl.study;

import com.yangl.study.aop.Cglib2AopProxy;
import com.yangl.study.aop.jdkDynamicAopProxy.AdvisedSupport;
import com.yangl.study.aop.jdkDynamicAopProxy.AopProxy;

/**
 * @author yanglei
 * @date 2021-12-10 0:03
 */
public class ProxyFactory extends AdvisedSupport implements AopProxy {

    @Override
    public Object getProxy() {
        return createAopProxy().getProxy();
    }

    protected final AopProxy createAopProxy() {
        return new Cglib2AopProxy(this);
    }
}
